<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
        <head><title>object DateTime in com.google.gdata.data.util</title>
        <meta http-equiv="content-type" content="text/html; charset=UTF8"></meta><meta content="scaladoc (version 2.7.1.r14655-b20080415113712)" name="generator"></meta><link href="../../../../../style.css" type="text/css" rel="stylesheet"></link><script type="text/javascript" src="../../../../../script.js"></script>
        </head>
        <body onload="init()">
        <table summary="" class="navigation">
        <tr>
          <td class="navigation-links" valign="top">
            <!-- <table><tr></tr></table> -->
          </td>
          <td align="right" valign="top" style="white-space:nowrap;" rowspan="2">
            <div class="doctitle-larger">GData Scala Client Library Documentation</div>
          </td>
        </tr>
        <tr><td></td></tr>
      </table>
        
      <div class="entity">
        <a href="../../../../../com/google/gdata/data/util$package.html" target="_self">com.google.gdata.data.util</a>
        <br></br>
        <span class="entity">object  DateTime</span>
      </div><hr></hr>
      <div class="source">
        [source: <a href="" class="com/google/gdata/data/util/DateTime"><code>com/google/gdata/data/util/DateTime.scala</code></a>]
      </div><hr></hr>
      <a name="DateTime"></a><dl>
      <dt>
        
        <code></code>
        <code>object</code>
        <em>DateTime</em>
      </dt>
      <dd><code> extends </code><a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a></dd>
    </dl>
      

<table summary="" cellpadding="3" class="member">
      <tr><td class="title" colspan="2">Value Summary</td></tr>
      <tr>
      <td class="modifiers" valign="top"> 
        <code>final val</code>
      </td>
      <td class="signature">
        <em><a href="../../../../../com/google/gdata/data/util/DateTime$object.html#MILLIS_IN_HOUR" target="_self">MILLIS_IN_HOUR</a></em>
         : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>
         = 3600000
        <div>Number of milliseconds in an hour</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code>final val</code>
      </td>
      <td class="signature">
        <em><a href="../../../../../com/google/gdata/data/util/DateTime$object.html#MILLIS_IN_MINUTE" target="_self">MILLIS_IN_MINUTE</a></em>
         : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>
         = 60000
        <div>Number of milliseconds in a minute.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code>final val</code>
      </td>
      <td class="signature">
        <em><a href="../../../../../com/google/gdata/data/util/DateTime$object.html#MILLIS_IN_SECOND" target="_self">MILLIS_IN_SECOND</a></em>
         : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>
         = 1000
        <div>Number of milliseconds in a second.</div>
      </td>
    </tr>
      </table>
<table summary="" cellpadding="3" class="member">
      <tr><td class="title" colspan="2">Method Summary</td></tr>
      <tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../../com/google/gdata/data/util/DateTime$object.html#apply%28Int%2CInt%2CInt%2CInt%2CInt%2CInt%2COption%5BDouble%5D%2CLong%29" target="_self">apply</a></em>
        (<em>year</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>month</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>day</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>hour</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>min</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>sec</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>frac</em> : <a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>], <em>offset</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Long.html" target="_self">Long</a>) : <a href="../../../../../com/google/gdata/data/util/DateTime.html" target="_self">DateTime</a>
        
        <div>Create a date time object with the given coordinates. The date is considered to be shifted 
   from UTC with the amount of milliseconds given in 'offset'. 
   <p/>
   It checks that the month is between
   1 and 12, day of the month between 1 and 31 and normal hour and minutes check. It doesn't
   do more fancy checks (check day of month w.r.t. to the given month, leap year/minute/second).</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../../com/google/gdata/data/util/DateTime$object.html#apply%28Int%2CInt%2CInt%29" target="_self">apply</a></em>
        (<em>year</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>month</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>day</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>) : <a href="../../../../../com/google/gdata/data/util/DateTime.html" target="_self">DateTime</a>
        
        <div>Create a date object with the given coordinates. The resulting date has the
   'dateOnly' flag set.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../../com/google/gdata/data/util/DateTime$object.html#parseDate%28String%29" target="_self">parseDate</a></em>
        (<em>str</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../../../com/google/gdata/data/util/DateTime.html" target="_self">DateTime</a>
        
        <div>Parse a date only, in RFC 3339 format. It returns a DateTime instance with the
   'dateOnly' flag set.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../../com/google/gdata/data/util/DateTime$object.html#parseDateOrDateTime%28String%29" target="_self">parseDateOrDateTime</a></em>
        (<em>str</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../../../com/google/gdata/data/util/DateTime.html" target="_self">DateTime</a>
        
        <div>Parse a date or a date time, in RFC 3339 format. If the given string has a time
   component, the returned DateTime will have the 'dateOnly' flag set to false and
   the time part taken into account.</div>
      </td>
    </tr>
<tr>
      <td class="modifiers" valign="top"> 
        <code> def</code>
      </td>
      <td class="signature">
        <em><a href="../../../../../com/google/gdata/data/util/DateTime$object.html#parseDateTime%28String%29" target="_self">parseDateTime</a></em>
        (<em>str</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../../../com/google/gdata/data/util/DateTime.html" target="_self">DateTime</a>
        
        <div>Parse a date time, according to RFC3339</div>
      </td>
    </tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html" target="_self">AnyRef</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#getClass%28%29" target="_self">getClass</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#hashCode%28%29" target="_self">hashCode</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#equals%28Any%29" target="_self">equals</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#clone%28%29" target="_self">clone</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#toString%28%29" target="_self">toString</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#notify%28%29" target="_self">notify</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#notifyAll%28%29" target="_self">notifyAll</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28Long%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28Long%2CInt%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#wait%28%29" target="_self">wait</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#finalize%28%29" target="_self">finalize</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#%3D%3D%28AnyRef%29" target="_self">==</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#%21%3D%28AnyRef%29" target="_self">!=</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#eq%28AnyRef%29" target="_self">eq</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#ne%28AnyRef%29" target="_self">ne</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/AnyRef.html#synchronized%28T0%29" target="_self">synchronized</a>
        </td></tr>
      </table><table summary="" cellpadding="3" class="inherited">
        <tr><td class="title" colspan="2">
          Methods inherited from <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html" target="_self">Any</a>
        </td></tr>
        <tr><td class="signature" colspan="2">
          <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#%3D%3D%28Any%29" target="_self">==</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#%21%3D%28Any%29" target="_self">!=</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#isInstanceOf" target="_self">isInstanceOf</a>, <a href="http://www.scala-lang.org/docu/files/api/scala/Any.html#asInstanceOf" target="_self">asInstanceOf</a>
        </td></tr>
      </table>


      

<table summary="" cellpadding="3" class="member-detail">
          <tr><td class="title">Value Details</td></tr>
        </table><div><a name="MILLIS_IN_SECOND"></a><dl>
      <dt>
        
        <code>final</code>
        <code>val</code>
        <em>MILLIS_IN_SECOND</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Number of milliseconds in a second.</dd></dl>
      <dl></dl>
    <hr></hr>
<a name="MILLIS_IN_MINUTE"></a><dl>
      <dt>
        
        <code>final</code>
        <code>val</code>
        <em>MILLIS_IN_MINUTE</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Number of milliseconds in a minute.</dd></dl>
      <dl></dl>
    <hr></hr>
<a name="MILLIS_IN_HOUR"></a><dl>
      <dt>
        
        <code>final</code>
        <code>val</code>
        <em>MILLIS_IN_HOUR</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Number of milliseconds in an hour</dd></dl>
      <dl></dl>
    <hr></hr></div>
<table summary="" cellpadding="3" class="member-detail">
          <tr><td class="title">Method Details</td></tr>
        </table><div><a name="parseDateTime%28String%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>parseDateTime</em>(<em>str</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../../../com/google/gdata/data/util/DateTime.html" target="_self">DateTime</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Parse a date time, according to RFC3339</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>ParseException - </code>when the string is not properly parsed.</dd></dl>
    <hr></hr>
<a name="parseDate%28String%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>parseDate</em>(<em>str</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../../../com/google/gdata/data/util/DateTime.html" target="_self">DateTime</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Parse a date only, in RFC 3339 format. It returns a DateTime instance with the
   'dateOnly' flag set.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>ParseException - </code>when the string is not a proper date/time.</dd></dl>
    <hr></hr>
<a name="parseDateOrDateTime%28String%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>parseDateOrDateTime</em>(<em>str</em> : <a href="" target="contentFrame" class="java/lang/String">java.lang.String</a>) : <a href="../../../../../com/google/gdata/data/util/DateTime.html" target="_self">DateTime</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Parse a date or a date time, in RFC 3339 format. If the given string has a time
   component, the returned DateTime will have the 'dateOnly' flag set to false and
   the time part taken into account.</dd></dl>
      <dl><dt style="margin:10px 0 0 20px;">
        <b>Throws</b></dt><dd><code>ParseException - </code>when the string fails parsing.</dd></dl>
    <hr></hr>
<a name="apply%28Int%2CInt%2CInt%2CInt%2CInt%2CInt%2COption%5BDouble%5D%2CLong%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>apply</em>(<em>year</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>month</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>day</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>hour</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>min</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>sec</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>frac</em> : <a href="" target="contentFrame" class="scala/Option">scala.Option</a>[<a href="http://www.scala-lang.org/docu/files/api/scala/Double.html" target="_self">Double</a>], <em>offset</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Long.html" target="_self">Long</a>) : <a href="../../../../../com/google/gdata/data/util/DateTime.html" target="_self">DateTime</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Create a date time object with the given coordinates. The date is considered to be shifted 
   from UTC with the amount of milliseconds given in 'offset'. 
   <p/>
   It checks that the month is between
   1 and 12, day of the month between 1 and 31 and normal hour and minutes check. It doesn't
   do more fancy checks (check day of month w.r.t. to the given month, leap year/minute/second).</dd></dl>
      <dl></dl>
    <hr></hr>
<a name="apply%28Int%2CInt%2CInt%29"></a><dl>
      <dt>
        
        <code></code>
        <code>def</code>
        <em>apply</em>(<em>year</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>month</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>, <em>day</em> : <a href="http://www.scala-lang.org/docu/files/api/scala/Int.html" target="_self">Int</a>) : <a href="../../../../../com/google/gdata/data/util/DateTime.html" target="_self">DateTime</a>
      </dt>
      <dd></dd>
    </dl>
      <dl><dd>Create a date object with the given coordinates. The resulting date has the
   'dateOnly' flag set.</dd></dl>
      <dl></dl>
    <hr></hr></div>


    <hr></hr>
        <table summary="" class="navigation">
        <tr>
          <td class="navigation-links" valign="top">
            <!-- <table><tr></tr></table> -->
          </td>
          <td align="right" valign="top" style="white-space:nowrap;" rowspan="2">
            <div class="doctitle-larger">GData Scala Client Library Documentation</div>
          </td>
        </tr>
        <tr><td></td></tr>
      </table>
      </body>
      </html>